package com.nowcode.community.mapper;

import com.nowcode.community.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: UserMapper
 * Package: com.nowcode.community.mapper
 * Description:
 *
 * @Author: 信
 * @Create: 2024/1/19 - 19:51
 */
@Mapper
public interface UserMapper {

    User selectById(int id);

    User selectByName(String username);

    User selectByEmail(String email);

    //TODO 3、返回值是int类型，是修改的行数

    int insertUser(User user);

    int updateStatus(int id, int status);

    int updateHeader(int id, String headerUrl);

    int updatePassword(int id, String password);


}
